package com.mervin.patterns.builder;

/***************************************
 * @Auther: mervin
 * @Date: 2020-04-18 01:01
 * @Description: 产品建造指挥者
 ***************************************/
public class FruitDirector {

    public Fruit constructFruit(FruitBuilder fruitBuilder) {
        fruitBuilder.washFruit();
        fruitBuilder.selectionFruit();
        fruitBuilder.packagedFruit();
        return fruitBuilder.buildFruit();
    }
}
